package com.android.myapplication.main;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;

import com.android.myapplication.MainActivity;
import com.android.myapplication.R;
import com.google.android.material.floatingactionbutton.FloatingActionButton;

import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;

public class BaseActvity  extends Activity {
    public static final String ARG_ITEM_ID = "item_id";
    MainContent.MainItem mItem;

    protected void init(){
        mItem = MainContent.ITEM_MAP.get(getIntent().getStringExtra(ARG_ITEM_ID));

        if (mItem != null) {
            ((TextView) findViewById(R.id.item_detail)).setText(mItem.details);
        }
    }

}
